package org.tgcloud.group.web.controller.manager.project;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.*;
import org.tgcloud.group.core.APPResultMessage;
import org.tgcloud.group.core.custom.Permissions;
import org.tgcloud.group.core.session.Session;
import org.tgcloud.group.service.manager.project.FileManageService;
import org.tgcloud.group.service.manager.project.ProjectStageService;
import org.tgcloud.group.web.controller.dto.project.ProjectStageDto;
import org.tgcloud.group.web.controller.dto.project.file.ProjectFileDTO;
import org.tgcloud.group.web.controller.req.project.file.FileSearchReq;

@Api(tags = "项目阶段")
@RestController
@RequestMapping("/manager/pc/user/stage")
@EnableAutoConfiguration
public class MjProjectStageController {

    @Autowired
    private ProjectStageService projectStageService;

    @ApiOperation(value = "项目文件列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "token", required = true, dataType = "string"),
    })
    @ResponseBody
    @RequestMapping(value = "/getStage", method = RequestMethod.POST)
    public APPResultMessage<Object, ProjectFileDTO> getProjectFileList(@ModelAttribute("session") Session session,
                                                                       @RequestBody ProjectStageDto dto) {
        return projectStageService.queryStage(dto);
    }


}
